import { TestSuite, TestCase, Tester } from '@rnoh/testerino';
import * as React from 'react';
import SplashScreen from 'react-native-splash-screen';

export function SplashScreenTest() {
    return (
        <Tester>
            <TestSuite name="SplashScreen">
                <TestCase
                    itShould="SplashScreen.hide"
                    fn={({ expect }: any) => {
                        expect(SplashScreen.hide()).to.not.be.undefined;
                    }}
                />
            </TestSuite>
        </Tester>
    );
}
export default {
  displayName: "SplashScreenTest",
  framework: "React",
  category: "Tools",
  title: "SplashScreenTest",
  documentationURL: "https://gitee.com/react-native-oh-library/usage-docs/blob/master/zh-cn/react-native-splash-screen.md",
  description: "自定义启动屏幕",
  examples: [
    {
      title: "splash-screen",
      render: function (): any {
        return <SplashScreenTest />;
      },
    },
  ],
};